package bt

import (
	"sync"
)


type Controller struct {
	Session *Session
}
var ControllerOnce sync.Once
var ControllerEngine *Controller

func Engine() *Controller {
	ControllerOnce.Do(func() {
		ControllerEngine = new (Controller)
		ControllerEngine.InitEngine()
	})
	return ControllerEngine
}

func (c *Controller ) InitEngine()  {
	c.Session = NewSession()
}

